feat(ui): make federated dev server ports configurable#2563
feat(ui): make federated dev server ports configurable#2563google-oss-prow[bot] merged 2 commits intokubeflow:mainfrom
Conversation
|
/retest |
|
/lgtm |
|
@Philip-Carneiro: changing LGTM is restricted to collaborators DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
| .PHONY: dev-frontend-federated | ||
| dev-frontend-federated: | ||
| cd frontend && AUTH_METHOD=user_token DEPLOYMENT_MODE=federated STYLE_THEME=patternfly PORT=9100 npm run start:dev | ||
| cd frontend && AUTH_METHOD=user_token DEPLOYMENT_MODE=federated STYLE_THEME=patternfly PORT=$(FEDERATED_FRONTEND_PORT) npm run start:dev |
There was a problem hiding this comment.
Just a thought, now that we can customise the FEDERATED_BFF_PORT - the proxy port is still defaults to 4000 port.
There was a problem hiding this comment.
Good catch, thanks! Fixed.
Add FEDERATED_FRONTEND_PORT and FEDERATED_BFF_PORT Make variables with conditional assignment (?=) so they can be overridden via environment variables. This allows running multiple federated dev environments simultaneously on different ports. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Mike Turley <mike.turley@alum.cs.umass.edu>
Ensures the webpack dev server proxy connects to the correct BFF port when FEDERATED_BFF_PORT is overridden. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Mike Turley <mike.turley@alum.cs.umass.edu>
af45fb6 to
5ab2aab
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ppadti The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description
FEDERATED_FRONTEND_PORTandFEDERATED_BFF_PORTMake variables with conditional assignment (?=) toclients/ui/MakefilePROXY_PORT=$(FEDERATED_BFF_PORT)to the frontend dev server so the webpack proxy connects to the correct BFF port when overriddenMotivation: When working with multiple git worktrees (e.g. working with agents on multiple branches or reviewing/testing multiple PRs), each worktree needs its own set of dev servers. Currently the federated dev targets hardcode
PORT=9100andPORT=4000, so only one instance can run at a time. This change makes the ports configurable while preserving the existing defaults.How Has This Been Tested?
make dev-start-federatedwith no env vars — should behave identically to before (ports 9100 and 4000)FEDERATED_FRONTEND_PORT=9200 FEDERATED_BFF_PORT=4100 make dev-start-federated— should start on the overridden ports and the frontend proxy should connect to port 4100Merge criteria:
DCOcheck)ok-to-testhas been added to the PR.If you have UI changes
🤖 Generated with Claude Code